package com.xxx.blog.service;

import com.xxx.blog.dao.UserMapper;
import com.xxx.blog.dao.UserRepository;
import com.xxx.blog.po.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserRepository userRepository;
    @Resource
    private UserMapper usermapper;

    @Override
    public User getUser(String username) {
        User user=usermapper.getUser(username);
        return user;
    }
}
